花费 6 ms
python中read(),readline(),和readlines()

1.read() read()每次读取整个文件,放到一个字符串变量中,返回类型是String. 2.readline()readline() 每次返回一行,字符串变量。 3.readlines( ...

Fri Oct 25 00:57:00 CST 2019 0 1020

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM